package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.Category;
import com.itheima.domain.Dish;
import com.itheima.dto.DishDto;

import java.util.List;

public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    //回显菜单信息和口味信息
    public DishDto getByIdWithFlavor(Long id);

    //更新菜单信息和口味信息
    public void updateWithFlavor(DishDto dishDto);

    //批量删除
    public void deleteWithFlavor(long[]ids);

    //批量禁用或启用
    public void  updateStatus(Integer status, long[]ids);

    //查询菜品
    public List<DishDto> categoryList(Dish dish);
}